﻿using System.Runtime.Serialization;

namespace Battle.Net.Model
{
    [DataContract]
    public class ItemSpell
    {

        [DataMember(Name = "spellId")]
        public int SpellId { get; set; }

        [DataMember(Name = "spell")]
        public Spell Spell { get; set; }

        [DataMember(Name = "nCharges")]
        public int ChargeCount { get; set; }

        [DataMember(Name = "consumable")]
        public bool Consumable { get; set; }

        [DataMember(Name = "categoryId")]
        public int CategoryId { get; set; }

        [DataMember(Name = "trigger")]
        public string Trigger { get; set; }

        public override string ToString()
        {
            return Spell.Name;
        }
    }
}